function regular(phone){
    var regphone =/^(0|86|17951)?(13[0-9]|15[012356789]|166|17[3678]|18[0-9]|14[57])[0-9]{8}$/
    if(regphone.test(phone)){
        return true
    }else{
        return false
    }
}
function regCertificates(certificates){
var certificatesNumber = /^(^[1-9]\d{7}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])\d{3}$)|(^[1-9]\d{5}[1-9]\d{3}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])((\d{4})|\d{3}[Xx])$)$/
if(certificatesNumber.test(certificates)){
    return true
}else{
    return false
}
}
export default{
    regular,regCertificates
}